import service from "@/utils/request"

import LoginWork from "@/utils/LoginWork"

// 外发工艺查询
export const OutgoingProcessInquiry = (parms:any) => {
    return service.post<any,any>(`/puttingOut/OutsourcingProcessInquiry`,parms)
}

// 工艺查询
export const ProcessInquiry = () => {
    return service.get<any,any>(`/sdStyle/returnCutDeptList`)
}

// 检核
export const FullCodeUsageCheck = (choose:number,parms:any) => {
    return LoginWork.put<any,any>(`/puttingOut/CheckTheBoxToCheckTheRecord/${choose}`,parms)
}   

// 工艺删除
export const deleteProcess = (id:number) => {
    return LoginWork.get<any,any>(`/puttingOut/ProcessDeletion/?id=${id}`)
}

// 取指令外发项目
export const FetchInstructionOutgoingItem = (parms:any) => {
    return LoginWork.post<any,any>(`/puttingOut/TakeInstructionsForOutsourcingProjects`,parms)
}

// 取指令外发项目
export const FetchInstructionOutgoingItem1 = (parms:any) => {
    return LoginWork.post<any,any>(`/puttingOut/TakeProcessOutsourcingProjects`,parms)
}

//插入厂商
export const InsertVendor = (parms:any) => {
    return LoginWork.put<any,any>(`/puttingOut/InsertManufacturer`,parms)
}                                                                                                                                                        